package com.course.design.common;

/**
 * 描述:
 *
 * @author qinlianji
 * @create 2020-03-22
 */
public enum ResultCode {

    SUCCESS(0, "请求成功"),
    Unknown_Exception(-1, "未知异常"),
    Error_Command(10000, "口令不正确"),
    File_Unfound(10001, "文件已失效"),
    File_NotExist(10002, "文件不存在"),
    PASSWORD_ENCRYPT(10003, "密码加密失败");


    private int code;
    private String message;

    ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
